#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @Time : 2022-1-21 11:14
# @Author : huabao.tan
# @File : demo.py
# @Software: PyCharm
import json

import requests


url = 'http://testtas6.cepin.com/api/examService/exam/user/getTaskUserPage?pageIndex=1&limit=10&language=cn&accessToken=49bd0014-dff8-4e9e-9522-3855d32faeee&_cId=11266'

login_headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36',
    'Content-Type': 'application/json;charset=UTF-8',
    'Host': 'testzyd.cepin.com',
    'Accept-Language': 'zh-CN,zh;q=0.9'}
# login_data = {"account": "admin1@talebase.com", "callerFrom": 0, "callerIP": "", "language": "cn",
#               "password": "cndLzOikpQ3YXsZGmrZLKw==", "companyPlatform": "HR", "validateCodeKey": "",
#               "validateCodeValue": ""}

login_data= {"answerStatusList":[],"emailNotifyStatusList":[],"dingTalkNotifyStatusList":[],"limit":10,"pageIndex":1,"projectId":"11143","searchKey":"nameLike","searchValue":"","smsNotifyStatusList":[],"queryLabelIds":[],"taskId":13693,"userSourceList":[],"performanceIds":[],"measurementMode":211}

response = requests.post(url=url, headers=login_headers, data=json.dumps(login_data)).json()





print(response)